<?php
error_reporting(0);
$isadmin=1; 
include '../comm/config.php';
include '../comm/class_db.php';
include 'check.php';
$table='nav';
$field_arr=$_POST['info'];
$id=$field_arr['id'];
$arr=array('id');
$field_arr=arr_diff($field_arr,$arr);
$field_arr=empty2zero($field_arr,array('sort'));

if($id=='')
{
    insert_one_sql($table,$field_arr,0);
	admin_log('新增导航');
}
else
{
    update_sql($table,$field_arr,"id=$id",0,0);
	admin_log('修改导航');
}

echo alert('保存成功!','nav_set.php');
mysql_close();
?>
